package com.hk.dao;

import com.hk.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import javax.persistence.Id;

@Repository
public interface UserRepository extends JpaRepository<User,Id> {

    User findUserByLoginNameAndPassword(String loginName,String password);
}
